package com.gzz.orchid.context.application.rbac.command;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.util.Set;

/**
 * @author higmd
 */
@Data
public class ModuleSaveCmd {
    private Long id;
    @NotNull
    private Long parentId;
    @NotBlank
    private String name;
    @NotBlank
    @Size(min = 4)
    private String code;
    private String icon;
    @NotNull
    private Integer idx;
    private String description;
    @NotNull(message = "{required.parameter}")
    @Size(min = 1, message = "{required.least.n.item}")
    private Set<String> actions;
}
